home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 34
/
Aminet 34 (2000)(Schatztruhe)[!][Dec 1999].iso
/
Aminet
/
comm
/
irc
/
cybershiela.lha
/
cs
/
csc_scan.amirx
< prev
next >
Wrap
Text File
|
1999-10-08
|
961b
|
52 lines
/* shiela ping responder */
Options Results
signal on syntax
ponger=getclip('SCANNER')
nick=getclip('SCAN')
if ponger=1 then do;'say Scan is in Use atm...Please try again in a moment after i report this Scan.';exit;end
call setclip('SCANNER','1')
getusers
allusers=result
x=pos(nick,upper(allusers))
if x<1 then signal nouser
userhost nick
host=result
temp=host
x=pos('@',temp)
z=length(temp)
m=z-x
mm=right(temp,m)
whost=mm
'say «Scanning 'nick' 'whost' for open ports»'
address command('ascan 'whost' >RAM:ascan2.txt')
do i=1 to 90000;end
'echo opening file'
call open(fle,'ram:ascan2.txt','R')
do until eof(fle)
mp=readln(fle)
if mp="RESULT" then signal NORES
if mp~="" then 'say «Scan» 'nick' Port 'mp' [Open]'
end
call close(fle)
'say «Scan of 'nick' Completed»'
call setclip('SCANNER','0')
exit
NORES:
'say «Scan» Port Scan on 'nick' failed.'
call setclip('SCANNER','0')
exit
nouser:
'say no such user exist'
call setclip('SCANNER','0')
exit